import request from "@/utils/request";

// 分页条件查询获取所有非申请中的成员
export function query(params) {
  return request({
    url: "/admin/preparatory/members",
    method: "GET",
    params: params,
  });
}

// 导出信息为Excel
export function downloadExcel(id) {
  return request({
    url: "/admin/preparatory/member/exportExcel/" + id,
    method: "GET",
    responseType: "blob",
  });
}
// 导出信息为PDF
export function downloadPDF(id) {
  return request({
    url: "/admin/preparatory/apply/member/exportPDF/" + id,
    method: "GET",
    responseType: "blob",
  });
}
// 查询各个学院的总人数信息
export function queryCollege() {
  return request({
    url: "/admin/preparatory/members/college",
    method: "GET",
  });
}

// 查询各个年级的总人数信息
export function queryGrade() {
  return request({
    url: "/admin/preparatory/members/grade",
    method: "GET",
  });
}

// 查询个人简历信息
export function getPersonInfo(studentId) {
  return request({
    url: "/admin/preparatory/members/personInfo",
    method: "GET",
    params: {
      studentId,
    },
  });
}
